<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>slice和splice</title>
</head>

<body>
    <script type="text/javascript">
    function frankenSplice(arr1, arr2, n) {
        // It's alive. It's alive!
        var arr11 = arr1.slice();
        console.log(arr11);
        var arr22 = arr2.slice();
        console.log(arr22);

        arr22.splice(n,0,arr11);
        console.log(arr22);

    }

    frankenSplice([1, 2, 3], [4, 5, 6], 1);
    </script>
</body>

</html>